package com.cao.project.domain;

import java.io.Serializable;
import java.util.Date;

import com.cao.common.core.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import com.cao.common.annotation.Excel;

/**
 * 通知对象 pro_project_notification
 *
 * @author cao
 * @date 2025-03-04
 */
@Data
@TableName(value = "pro_project_notification")
public class ProjectNotification extends BaseEntity implements

        Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /** 通知ID */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 标题 */
    @Excel(name = "标题")
    @TableField(value = "title")
    private String title;

    /** 用户ID */
    @Excel(name = "用户ID")
    @TableField(value = "user_id")
    private Long userId;

    /** 发布者姓名 */
    @Excel(name = "发布者姓名")
    @TableField(value = "user_name")
    private String userName;

    /** 项目ID */
    @Excel(name = "项目ID")
    @TableField(value = "project_id")
    private Long projectId;

    /** 项目名称 */
    @Excel(name = "项目名称")
    @TableField(value = "project_name")
    private String projectName;

    /** 附件 */
    @Excel(name = "附件")
    @TableField(value = "file_url")
    private String fileUrl;

    /** 通知内容 */
    @Excel(name = "通知内容")
    @TableField(value = "message")
    private String message;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "created_at")
    private Date createdAt;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "modified_at")
    private Date modifiedAt;


}
